<?php 							
	class uSort{

		static function index($arr){
			usort($arr, 'zxyUsort');
			return $arr;
		}

		static function pri($arr){
			echo '<pre>';
			print_r($arr);
			echo '</pre>';
		}
	}

	$arr = array(
		array('price'=>1000,'count'=>12),
		array('price'=>800,'count'=>33),
		array('price'=>1200,'count'=>21),
		array('price'=>800,'count'=>33),
		array('price'=>1100,'count'=>68),
	);


	function zxyUsort($a,$b){
		return ($a['price']-$b['price']>=0 && $a['count']-$b['count']>=0) ? -1 : 1;
	}

	// echo '原数组';
	// uSort::pri($arr);
	$result = uSort::index($arr);
	// echo 'uSort后';
	uSort::pri($result);
	
 ?>